package com.team2.shared;

import java.util.ArrayList;

import android.os.Parcel;
import android.os.Parcelable;

public class MapDirectionInfo implements Parcelable {
	
	private String fromStreetAddr;
	private String fromCity;
	private String fromStateAndZipCode;
	private String fromCountry;
	private String toStreetAddr;
	private String toCity;
	private String toStateAndZipCode;
	private String toCountry;
	private String distanceToDest;
	private String timeToDest;
	
	public MapDirectionInfo(){
		
	}

	public String getDistanceToDest() {
		return distanceToDest;
	}

	public void setDistanceToDest(String distanceToDest) {
		this.distanceToDest = distanceToDest;
	}

	public String getTimeToDest() {
		return timeToDest;
	}

	public void setTimeToDest(String timeToDest) {
		this.timeToDest = timeToDest;
	}

	public String getFromCity() {
		return fromCity;
	}

	public void setFromCity(String fromCity) {
		this.fromCity = fromCity;
	}

	public String getFromStateAndZipCode() {
		return fromStateAndZipCode;
	}

	public void setFromStateAndZipCode(String fromStateAndZipCode) {
		this.fromStateAndZipCode = fromStateAndZipCode;
	}

	public String getFromCountry() {
		return fromCountry;
	}

	public void setFromCountry(String fromCountry) {
		this.fromCountry = fromCountry;
	}

	public String getToCity() {
		return toCity;
	}

	public void setToCity(String toCity) {
		this.toCity = toCity;
	}

	public String getToStateAndZipCode() {
		return toStateAndZipCode;
	}

	public void setToStateAndZipCode(String toStateAndZipCode) {
		this.toStateAndZipCode = toStateAndZipCode;
	}

	public String getToCountry() {
		return toCountry;
	}

	public void setToCountry(String toCountry) {
		this.toCountry = toCountry;
	}

	public String getFromStreetAddr() {
		return fromStreetAddr;
	}

	public void setFromStreetAddr(String fromStreetAddr) {
		this.fromStreetAddr = fromStreetAddr;
	}

	public String getToStreetAddr() {
		return toStreetAddr;
	}

	public void setToStreetAddr(String toStreetAddr) {
		this.toStreetAddr = toStreetAddr;
	}

	@Override
	public int describeContents() {
		return 0;
	}

	@Override
	public void writeToParcel(Parcel dest, int flags) {
		dest.writeString(fromStreetAddr);
		dest.writeString(fromCity);
		dest.writeString(fromStateAndZipCode);
		dest.writeString(fromCountry);
		dest.writeString(toStreetAddr);
		dest.writeString(toCity);
		dest.writeString(toStateAndZipCode);
		dest.writeString(toCountry);
		dest.writeString(distanceToDest);
		dest.writeString(timeToDest);
	}
	
	public static final Parcelable.Creator<MapDirectionInfo> CREATOR = new Parcelable.Creator<MapDirectionInfo>() {
		public MapDirectionInfo createFromParcel(Parcel in) {
			return new MapDirectionInfo(in);
		}

		public MapDirectionInfo[] newArray(int size) {
			return new MapDirectionInfo[size];
		}
	};
	
	private MapDirectionInfo(Parcel in) {
		
		fromStreetAddr =in.readString();
		fromCity =in.readString();
		fromStateAndZipCode =in.readString();
		fromCountry =in.readString();
		toStreetAddr =in.readString();
		toCity =in.readString();
		toStateAndZipCode =in.readString();
		toCountry =in.readString();
		distanceToDest =in.readString();
		timeToDest =in.readString();
	}

}
